package com.pig4cloud.pigx.ruralLibrary.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.ruralLibrary.api.entity.ResourceEntity;
import com.pig4cloud.pigx.ruralLibrary.service.ResourceService;
import com.pig4cloud.pigx.ruralLibrary.service.resourceStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class resourceStatisticsServiceImpl implements resourceStatisticsService {


    @Override
    public List<Map> bookRanking() {


        List<Map> list = new ArrayList<>();
        Map map = new HashMap();
        Map map1 = new HashMap();
        Map map2 = new HashMap();
        map.put("title", "治国治吏长策");
        map.put("author", "牛 月");
        map.put("press", "汕头大学出版社");
        map.put("avatar", "/ruralLibrary/user/lengleng/da4a9fc5e0e24b90871fdc67395e65d5.jpg");
        map.put("value", "598");

        map1.put("title", "新时期雷锋精神读本.小学高年级");
        map1.put("author", "李正蕊");
        map1.put("press", "红旗出版社");
        map1.put("avatar", "/ruralLibrary/user/lengleng/00b586e5e66b4ec7a70ab70c71b76865.jpg");
        map1.put("value", "363");

        map2.put("title", "唐太宗李世民传");
        map2.put("author", "郭艳红");
        map2.put("press", "内蒙古文化出版社");
        map2.put("avatar", "/ruralLibrary/user/lengleng/0aec0806ac3c4750886650197b701616.jpeg");
        map2.put("value", "265");

        list.add(map);
        list.add(map1);
        list.add(map2);
        return list;
    }

    @Override
    public List<Map> videoRanking() {
        List<Map> list = new ArrayList<>();
        Map map = new HashMap();
        Map map1 = new HashMap();
        Map map2 = new HashMap();
        map.put("title", "数列求和方法面面观");
        map.put("press", "中国教育出版网");
        map.put("avatar", "/ruralLibrary/user/lengleng/0aec0806ac3c4750886650197b701616.jpeg");
        map.put("value", "598");

        map1.put("title", "基本初等函数");
        map1.put("press", "中国教育出版网");
        map1.put("avatar", "/ruralLibrary/user/lengleng/2857a039b14044a4abc9c6ea2fd8c948.jpg");
        map1.put("value", "363");

        map2.put("title", "点、直线、平面之间的位置关系");
        map2.put("press", "中国教育出版网");
        map2.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map2.put("value", "265");

        list.add(map);
        list.add(map1);
        list.add(map2);
        return list;
    }

    @Override
    public List<Map> audioRanking() {
        List<Map> list = new ArrayList<>();
        Map map = new HashMap();
        Map map1 = new HashMap();
        Map map2 = new HashMap();
        map.put("title", "《宋词三百首》");
        map.put("author", "朱孝臧");
        map.put("avatar", "/ruralLibrary/user/lengleng/0aec0806ac3c4750886650197b701616.jpeg");
        map.put("value", "598");

        map1.put("title", "《唐诗三百首》");
        map1.put("author", "蘅塘退士");
        map1.put("avatar", "/ruralLibrary/user/lengleng/2857a039b14044a4abc9c6ea2fd8c948.jpg");
        map1.put("value", "363");

        map2.put("title", "《西游记》");
        map2.put("author", "吴承恩");
        map2.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map2.put("value", "265");

        list.add(map);
        list.add(map1);
        list.add(map2);
        return list;
    }

    @Override
    public List<Map> periodicalRanking() {
        List<Map> list = new ArrayList<>();
        Map map = new HashMap();
        Map map1 = new HashMap();
        Map map2 = new HashMap();
        Map map3 = new HashMap();
        Map map4 = new HashMap();
        Map map5 = new HashMap();
        Map map6 = new HashMap();
        Map map7 = new HashMap();
        Map map8 = new HashMap();
        Map map9 = new HashMap();
        Map map10 = new HashMap();
        map.put("title", "传媒");
        map.put("author", "杨驰原");
        map.put("sponsor", "中国新闻出版研究院");
        map.put("avatar", "/ruralLibrary/user/lengleng/0aec0806ac3c4750886650197b701616.jpeg");
        map.put("value", "598");

        map1.put("title", "科学大众：小诺贝儿");
        map1.put("author", "");
        map1.put("sponsor", "江苏省科学传播中心");
        map1.put("avatar", "/ruralLibrary/user/lengleng/2857a039b14044a4abc9c6ea2fd8c948.jpg");
        map1.put("value", "363");

        map2.put("title", "戏剧之家");
        map2.put("author", "罗思远");
        map2.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map2.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map2.put("value", "265");

        map3.put("title", "戏剧之家");
        map3.put("author", "罗思远");
        map3.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map3.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map3.put("value", "265");

        map4.put("title", "戏剧之家");
        map4.put("author", "罗思远");
        map4.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map4.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map4.put("value", "265");

        map5.put("title", "戏剧之家");
        map5.put("author", "罗思远");
        map5.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map5.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map5.put("value", "265");

        map6.put("title", "戏剧之家");
        map6.put("author", "罗思远");
        map6.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map6.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map6.put("value", "265");

        map7.put("title", "戏剧之家");
        map7.put("author", "罗思远");
        map7.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map7.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map7.put("value", "265");

        map8.put("title", "戏剧之家");
        map8.put("author", "罗思远");
        map8.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map8.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map8.put("value", "265");

        map9.put("title", "戏剧之家");
        map9.put("author", "罗思远");
        map9.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map9.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map9.put("value", "265");

        map10.put("title", "戏剧之家");
        map10.put("author", "罗思远");
        map10.put("sponsor", "湖北今古传奇传媒集团有限公司");
        map10.put("avatar", "/ruralLibrary/user/lengleng/f2e57b92c0764c949e5620392b7a0b1b.jpeg");
        map10.put("value", "265");

        list.add(map);
        list.add(map1);
        list.add(map2);
        list.add(map3);
        list.add(map4);
        list.add(map5);
        list.add(map6);
        list.add(map7);
        list.add(map8);
        list.add(map9);
        list.add(map10);
        return list;
    }
}
